classdef PearsonCorrelationCoefficient < Algorithm & Metric
    %PEARSONCORRELATIONCOEFFICIENT Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
    end
    
    methods
        function [ this ] = PearsonCorrelationCoefficient( name )
            if nargin == 0
                this.setName('pcc');
            end
            if nargin >= 1
                this.setName(name);
            end
        end
    end
    
    methods
        function [ result ] = apply( this, X, Y )
            result = PearsonCorrelationCoefficient.calc(X, Y);
        end
    end
    
    methods ( Static = true )
        function [ result ] = calc( X, Y )
            result = prcorr2(X, Y);
        end
    end
    
end

